package com.ithm.service.impl;


import com.ithm.mapper.VisaMapper;
import com.ithm.pojo.Visa;
import com.ithm.service.VisaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
@Service
public class VisaServiceImpl implements VisaService {

    @Autowired
    private VisaMapper visaMapper;

    @Override
    public List<Visa> findAll() {
        List<Visa> all = visaMapper.findAll();
        return all;
    }

    @Override
    public Visa findById(Integer id) {
        return visaMapper.findById(id);
    }

    @Override
    public int save(Visa visa) {
        return visaMapper.save(visa);
    }

    @Override
    public int update(Visa visa) {
        return visaMapper.update(visa);
    }

    @Override
    public int delete(Integer id) {
        return visaMapper.delete(id);
    }

}
